<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "__ROOT__/",
            WEB_ROOT: "__WEB_ROOT__/",
            JS_ROOT: "static/js/",
            APP: '{$Request.module}'/*当前应用名*/
        };
    </script>
    <script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/wind.js"></script>
    <script src="__TMPL__/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <if condition="APP_DEBUG">
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    </if>
</head>
<body>
<div class="wrap js-check-wrap">
   
    <span style="float: right;height:50px;padding: 15px 0px;font-size:20px">ID:{$Request.param.mytask_id}</span>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('template/listOrder')}">
        <table class="table table-hover table-bordered table-list" style="border-collapse: collapse;width: 100%; max-width: 100%;margin-bottom: 20px">
            <tbody>
                <foreach name="data['header']" item="vo" key="key">
                    <tr>
                        <td style="padding: 8px;line-height: 1.42857143; border:2px solid #232525;width: 50%;vertical-align: middle;font-size:20px;  ">{$key}</td>
                        <td style="padding: 8px;line-height: 1.42857143; border:2px solid #232525;width: 50%;vertical-align: middle;font-size:20px;  ">{$vo}</td>	
                    </tr>
                </foreach>
            </tbody>
        </table>
        <ul style=" margin-top: 10px;">
            <php> for($i=1;$i<=$data_template['template']['progress'];$i++){</php>
                <div class="conn_t" style="height:30px;overflow:hidden;">
                    <p style=" font-size:25px;float:left;color:#666666;line-height: 30px;    margin: 0 0 10px">步骤{$i}：</p>
                </div>
                <div class="conn_b" style=" height:auto;overflow:hidden; background:#fff;">
                    <foreach name="data.template" item="vo">
                        <foreach name="vo.content" item="v">
                            <if condition="$v['progressid'] eq $i">
                                <div style="height:auto;border-bottom:1px solid #e6e6e6; padding-top: 10px;padding-bottom: 10px; padding-left: 10px;">
                                    <p style="margin: 0;font-size:22px;    margin: 0 0 10px">{$v.question}</p>
                                    <if condition="is_array($v.reply)">
                                        <foreach name="v.reply" item="vi">
                                            <if condition="$vi != ''">
                                                <php>
                                                    $das=explode(',',$vi);
                                                </php>
                                                <foreach name="das" item="vj">
                                                    <php>
                                                        $da=explode('|',$vj);
                                                    </php>
                                          
                                                    <if condition="$da[0] === '0'">
                                                        <span style="display:block; margin: 0;font-size:20px; margin-top:10px;">{$da[1]}</span>
                                                    <elseif condition="$da[0] == 1"/>
                                                        <img src="{$da[1]}-thumbnail300x300" style="width:200px,height:200px;float:left;" />
                                                    <elseif condition="$da[0] == 2"/>
                                                        <span style="display:block; margin: 0;font-size:20px; margin-top:10px;">视频文件:{$da[1]}</span>
                                                    <elseif condition="$da[0] == 3||$da[0] == 4"/>
                                                        <php>$da=explode('-',$da[1]);</php>
                                                        <span style="display:block; margin: 0;font-size:20px; margin-top:10px;">音频文件:{$da[0]}</span>
                                                    </if>
                                                </foreach>
                                            </if>
                                        </foreach>
                                    <else/>
                                        <span style="display:block; margin: 0;font-size:20px; margin-top:10px;">{$v.reply}</span>
                                    </if>
                                    <notempty name="$v.reply_evaluate">
                                        <if condition="1 == $Request.param.checkbox">
                                            <br/><span style="display:block; margin: 0;font-size:20px;color:#ff9900; margin-top:10px;">点评：{$v.reply_evaluate}</span>
                                        </if>
                                    </notempty>
                                </div>
                            </if>
                        </foreach>
                    </foreach>
                </div>
            <php>}</php>
        </ul>
        <table class="table table-hover table-bordered table-list" style="border-collapse: collapse;width: 100%; max-width: 100%;margin-bottom: 20px">
            <tbody>
                <foreach name="data['footer']" item="vo" key="key">
                    <tr>
                        <td style="padding: 8px;line-height: 1.42857143; border:2px solid #232525;width: 50%;vertical-align: middle;font-size:20px;  ">{$key}</td>
                        <td style="padding: 8px;line-height: 1.42857143; border:2px solid #232525;width: 50%;vertical-align: middle;font-size:20px;  ">{$vo}</td>  
                    </tr>
                </foreach> 
            </tbody>  
        </table> 
      
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    
                    <button type="button" class="btn btn-primary js-ajax-submit" onclick="play({$Request.param.mytask_id},{$Request.param.user_id},{$Request.param.group_id})">导出</button>
                </div>
            </div>
        
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
 
     function play(mytask_id,user_id,group_id){
        alert("/student/mytask/export/mytask_id/"+mytask_id+"/user_id/"+user_id+'/group_id/'+group_id);
         window.location.href = "/student/mytask/export/mytask_id/"+mytask_id+"/user_id/"+user_id+'/group_id/'+group_id;
    }
</script>
</body>
</html>